#assignq.py
from sqlalchemy import Column, ForeignKey, String, Integer, orm
from app.models.base import Base
#from app.models.llmAnswer import LLMAnswer
class AssignmentQ(Base):
    Q_id = Column(Integer, primary_key=True)
    Q_Text = Column(String(1000), nullable=False)
    CNumber = Column(String(10), nullable=False)
    Topic_id = Column(Integer, nullable=True)
    def __init__(self, Q_id, Q_Text, CNumber,Topic_id=None):
        super(AssignmentQ, self).__init__()
        self.Q_id = Q_id
        self.Q_Text = Q_Text
        #self.Category = Category
        self.CNumber = CNumber
        self.Topic_id = Topic_id